package cn.itsource.controller;

import cn.itsource.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class UserController {

    @GetMapping(value = "/user/{id}")
    public User getuser(@PathVariable("id") Integer id){
        return new User(id,"zs"+id,"我是1000");
    }
}
